package com.sun.dream.fish.frontmodel.resources;

import lombok.extern.slf4j.Slf4j;

import java.util.Locale;

/**
 * Description:  i18n资源处理
 * Created By ljl on 2023/12/07.
 */
@Slf4j
public class DSFI18nMessage extends DSFMessageLoader {

    private DSFI18nMessage() {
        super("dsfFormat/i18n/messageFormat");
    }

    public static DSFI18nMessage getInstance() {
        return InnerInstance.INSTANCE;
    }

    private static class InnerInstance {
        private static final DSFI18nMessage INSTANCE = new DSFI18nMessage();
    }

    public String getMessageWithUS(String key, Object... message) {
        return getMessageByLocale(key, Locale.US, message);
    }


}
